package com.dsp.services.impl;

import java.io.Serializable;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.core.util.GenericDAO;
import com.core.util.GenericServiceHibernate;
import com.dsp.bean.CompanyAccount;
import com.dsp.dao.CompanyAccountDAO;
import com.dsp.services.CompanyAccountService;

@Service("companyAccountService")
public class CompanyAccountServiceImpl extends GenericServiceHibernate<CompanyAccount , Long> 
	implements CompanyAccountService {

	@Autowired
	private CompanyAccountDAO companyAccountDAO;
	
	@Resource(name = "companyAccountDAO")
	public void setDao(GenericDAO<CompanyAccount, Serializable> dao) {
		super.setDao(dao);
	}

	/**
	 * @return the companyAccountDAO
	 */
	public CompanyAccountDAO getCompanyAccountDAO() {
		return companyAccountDAO;
	}

	/**
	 * @param companyAccountDAO the companyAccountDAO to set
	 */
	public void setCompanyAccountDAO(CompanyAccountDAO companyAccountDAO) {
		this.companyAccountDAO = companyAccountDAO;
	}
	
	
}
